package com.zclcs.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zclcs.model.Menu;

public interface MenuMapper extends BaseMapper<Menu> {

	/**
	 * 查询菜单
	 * 
	 * @param entityWrapper1 限定角色范围
	 * @param entityWrapper2 查询条件
	 * @return
	 */
	List<Menu> selectMenu(@Param("roleId") String roleId, @Param("ew") QueryWrapper<Menu> entityWrapper);

	/**
	 * 查询是否系统菜单
	 * 
	 * @param entityWrapper
	 * @return
	 */
	Integer selectIsAdmin(@Param("ew") QueryWrapper<Menu> entityWrapper);

	/**
	 * 查询系统菜单名称
	 * 
	 * @param entityWrapper
	 * @return
	 */
	String[] selectAdminMenu(@Param("ew") QueryWrapper<Menu> entityWrapper);

}
